package com.retoc.graduationtravel.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @TableName spot
 */
@TableName(value = "spot")
@Data
public class Spot implements Serializable {
    /**
     * ID
     */
    @TableId
    private Long id;

    /**
     * 酒店/景点名
     */
    private String name;

    /**
     * 城市ID
     */
    private Integer cityId;

    /**
     * 酒店/景点简介
     */
    private String description;

    /**
     * 星级
     */
    private Integer star;

    /**
     * 1为酒店，2为景点，后续再增加其他
     */
    private Integer typeId;

    /**
     * 管理员ID
     */
    private Long adminId;

    /**
     * 逻辑删除
     */
    private Integer isDeleted;

    /**
     * 浏览数
     */
    private Integer viewCount;

    /**
     * 点赞数
     */
    private Integer voteCount;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}